package cn.kent.consumer;

import cn.kent.config.RabbitDlxConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DlxConsumer {
    @RabbitListener(queues = RabbitDlxConfig.DLX_QUEUE_NAME)
    public void handler(String msg) {
        System.out.println("死信队列 msg : " + msg);
    }
}
